//
//  BBNodeView.h
//  xNose
//
//  Created by ben smith on 9/7/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

// the root view for all the nodes

@class BBNode;

@interface BBNodeView : NSView {
	NSGradient * backgroundGradient;
	NSDictionary * textAttributes;
	NSBezierPath * backgroundRect;
	NSTextField * titleField;
	BBNode * node;
} 

@property (copy) NSGradient* backgroundGradient;
@property (retain) NSBezierPath * backgroundRect;
@property (retain) BBNode * node;

- (NSColor*)fontColor ;
- (NSFont*)font ;
- (NSRect)textRect;
- (id)initWithFrame:(NSRect)frame ;
- (void) dealloc;
- (void)controlTextDidEndEditing:(NSNotification *)aNotification;
- (void)drawNode;
- (void)drawRect:(NSRect)rect ;
- (void)fieldDone:(id)sender;
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context;
- (void)setNode:(BBNode*)aNode;
- (void)setupBackgroundGradient;
- (void)setupBackgroundRect;
- (void)setupTextAttributes;

// 14 methods



@end
